/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdSeverManagement;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Date;

/**
 *
 * @date: 2025/3/31 10:54
 **/
@Data
@AutoMapper(target = IsfdSeverManagement.class)
public class IsfdServerManagementAddBo{
    /**
     * 自增主键，唯一标识每一个记录
     */
    @NotNull(message = "自增主键，唯一标识每一个记录不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 服务名称
     */
    @NotNull(message = "服务名称不能为空", groups = {EditGroup.class})
    private String serverName;
    /**
     * 业务场景ID
     */
    @NotNull(message = "业务场景ID不能为空", groups = {EditGroup.class})
    private Long sceneId;
    /**
     * 业务系统ID
      */
    @NotNull(message = "业务系统ID不能为空", groups = {EditGroup.class})
    private Long systemId;
    /**
     * 模型ID
     */
    @NotNull(message = "模型ID不能为空", groups = {EditGroup.class})
    private Long modelId;
    /**
     * 模型版本ID
     */
    private String modelVersion;
    /**
     * 要素库ID
     */
    @NotNull(message = "要素库ID不能为空", groups = {EditGroup.class})
    private Long databaseTypeId;
    /**
     * 服务描述
     */
    private String description;
    /**
     * 状态，0-待发布，1-已发布，2-已撤销
     */
    private Integer status;
    /**
     * 服务类型，0-调用服务，1-存储服务
     */
    @NotNull(message = "服务类型不能为空", groups = {EditGroup.class})
    private Integer serverType;
    /**
     * 发布时间
     */
    private Date releaseTime;
    /**
     * 服务次数
     */
    private Long serviceTimes;
    /**
     * 服务地址
     */
    private String serviceAddress;
    /**
     * 数据表表名
     */
    private String tableName;
}
